package com.bw.educate.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author 在线教育-五组
 * @since 2020-08-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class EduCourseComment implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;

    /**
     * 学员ID
     */
    @TableField("USER_ID")
    private Long userId;

    /**
     * 课程ID
     */
    @TableField("COURSE_ID")
    private Long courseId;

    /**
     * 父级评论id(为0则是一级评论,不为0则是回复)
     */
    @TableField("P_COMMENT_ID")
    private Long pCommentId;

    /**
     * 笔记内容
     */
    @TableField("CONTENT")
    private String content;

    /**
     * 创建时间
     */
    @TableField("CREATE_TIME")
    private Date createTime;


}
